package game.MazeRunner;

import java.io.Serializable;

public class SocketData implements Serializable {
	// NULL			= -1;
	// playerID		= 0;
	// playerNum	= 1;
	// MazeSmallCell	= 2; Obj
	// Move				= 3; int,char
	// SmallPlayer		= 4; Obj,int
	// time			= 10;
	// playerName	= 13;
	// outsoc firm	= 11;
	int type;
	Serializable obj;
	int val_int;
	boolean val_bool;
	char val_char;
	
	public SocketData() {
		this.type=-1;
		this.obj=null;
	}
	
	public SocketData ( int type, Serializable obj ) {
		this.type	= type;
		this.obj	= obj;
	}
	
	public SocketData ( int type, int val ) {
		this.type		= type;
		this.val_int	= val;
	}
	
	public SocketData ( int type, boolean val ) {
		this.type		= type;
		this.val_bool	= val;
	}
	
	public SocketData ( int type, int val, char ch ) {
		this.type		= type;
		this.val_int	= val;
		this.val_char	= ch;
	}
	
	public SocketData ( int type, Serializable obj, int val ) {
		this.type		= type;
		this.obj		= obj;
		this.val_int	= val;
	}

}